package com.jjx.trainingapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjx.trainingapi.entity.param.DcUserFriendsParam;
import com.jjx.trainingapi.entity.po.DcUserFriends;
import com.jjx.trainingapi.entity.vo.CommentListVo;
import com.jjx.trainingapi.entity.vo.FriendsListVo;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年06月03日 23:27
 * @description believe in yourself
 */
public interface DcUserFriendsService extends IService<DcUserFriends> {


    /**
     * 获取列表
     *
     * @return
     */
    List<FriendsListVo> getList();

    /**
     * 发布一条朋友圈
     * @param friends
     * @return
     */
    void publishFriends(DcUserFriendsParam friends);

    /**
     * 获取评论列表
     * @param friends
     * @return
     */
    List<CommentListVo> getCommentList(DcUserFriendsParam friends);

    /**
     * 添加收藏
     * @param friends
     */
    void addFavorite(DcUserFriendsParam friends);

    /**
     * 移除收藏
     * @param friends
     */
    void removeFavorite(DcUserFriendsParam friends);

    /**
     * 添加分享数
     * @param friends
     */
    void addShard(DcUserFriendsParam friends);
}
